package com.huicharge.huichargecrm.converter;

import com.huicharge.huichargecrm.model.dto.ShopInsertDTO;
import com.huicharge.huichargecrm.model.dto.ShopModifyDTO;
import com.huicharge.huichargecrm.model.entity.AutomobileSalesServiceShopDO;
import org.mapstruct.*;
import org.mapstruct.factory.Mappers;

/**
 * @author 鲁昊天
 * @date 2024/12/21
 */
@Mapper(componentModel = "spring",
        nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE,
        nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS,
        unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface AutoMobileSalesServiceShopConverter {
    AutoMobileSalesServiceShopConverter converter =
            Mappers.getMapper(AutoMobileSalesServiceShopConverter.class);

    AutomobileSalesServiceShopDO toDO(ShopInsertDTO dto);

    AutomobileSalesServiceShopDO toDO(ShopModifyDTO dto);


}
